/**
 * 产能分析日通报表 Api
 */
import instance from '@/utils/request'

const api = {
  getHxApi: 'newModule/dropDown', // 获取划小地区下拉框数据
  getTitle: 'newModule/test1', // 获取标题
  getAllData: 'newModule/moduleAllData', // 获取产能分析日通报表数据
  exportExcel: '/newModule/test' // 导出excel
}

export const getHxApi = (params: any) => {
  return instance({
    url: api.getHxApi + '/' + params,
    method: 'get'
  })
}

export const getTitle = (params: any) => {
  return instance({
    url: api.getTitle,
    method: 'get',
    params
  })
}

export const getAllData = (params: any) => {
  return instance({
    url: api.getAllData,
    method: 'get',
    params
  })
}

export const exportExcelApi = (params: any) => {
  return instance({
    url: api.exportExcel,
    method: 'get',
    params
  })
}
